package com.ruoyi.controller;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 微信二维码Controller
 * 处理微信二维码相关的HTTP请求
 */
@RestController
@RequestMapping("/api/wechat/service")
public class UWechatQrcodeController {

    @Autowired
    private CarouselService carouselService;

    @GetMapping("/qrcode")
    public R<String> getQrcode(String sceneStr){
      return R.ok(carouselService.getQrcode(sceneStr));
    }
}
    